def root(a, b, c):
    first_step = pow((b**2)-(4*a*c), 0.5)
    print(first_step)
    print(a,b,c)
    if first_step < 0:
        root1, root2 = None, None
    elif first_step == 0:
        root1 = (-b) / (2*a)
        root2 = None
    else:
        root1 = (-b + first_step) / (2*a)
        root2 = (-b - first_step) / (2*a)
    print(f"第一个根为:{root1}, 第二个根为:{root2}")

    return

if __name__ == "__main__":
    a, b, c = map(lambda x:float(x), input("输入a,b,c: ").split())
    root(a,b,c)
